<template>
  <div>
    <table>
      <tr>
        <td>用户id</td>
        <td>用户名</td>
      </tr>
      <tr v-for="i in arr">
        <td>{{i.id}}</td>
        <td>{{i.user}}</td>
      </tr>
    </table>
  </div>
</template>

<script>
export default {
  name: "three",
  data() {
    return {
      user:this.$route.query,
      arr:[]
    }
  },
  methods: {
    login(){
      this.axios.get('login/')
      .then(res=>{
        this.arr=res.data
      })
    }
  },
  mounted() {
    this.login()
  }
}
</script>

<style scoped>

</style>
